package com.runfast.waimai.dao.model;

import java.io.Serializable;
import java.util.Date;

public class RunfastRedPacket implements Serializable {
    private Integer id;

    /**
     * 领取人
     */
    private Integer create_by;

    /**
     * 领取时间
     */
    private Date create_time;

    /**
     * 红包活动id
     */
    private Integer red_id;

    /**
     * 可以使用天数
     */
    private Integer valid_day;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public RunfastRedPacket withId(Integer id) {
        this.setId(id);
        return this;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getCreate_by() {
        return create_by;
    }

    public RunfastRedPacket withCreate_by(Integer create_by) {
        this.setCreate_by(create_by);
        return this;
    }

    public void setCreate_by(Integer create_by) {
        this.create_by = create_by;
    }

    public Date getCreate_time() {
        return create_time;
    }

    public RunfastRedPacket withCreate_time(Date create_time) {
        this.setCreate_time(create_time);
        return this;
    }

    public void setCreate_time(Date create_time) {
        this.create_time = create_time;
    }

    public Integer getRed_id() {
        return red_id;
    }

    public RunfastRedPacket withRed_id(Integer red_id) {
        this.setRed_id(red_id);
        return this;
    }

    public void setRed_id(Integer red_id) {
        this.red_id = red_id;
    }

    public Integer getValid_day() {
        return valid_day;
    }

    public RunfastRedPacket withValid_day(Integer valid_day) {
        this.setValid_day(valid_day);
        return this;
    }

    public void setValid_day(Integer valid_day) {
        this.valid_day = valid_day;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", create_by=").append(create_by);
        sb.append(", create_time=").append(create_time);
        sb.append(", red_id=").append(red_id);
        sb.append(", valid_day=").append(valid_day);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}